using UnityEngine;
// [Assembly-CSharp.dll].Setting
public class Setting : MonoBehaviour
{
    // Fields
    public UnityEngine.UI.Image musicImage;
    public UnityEngine.UI.Image soundImage;
    public UnityEngine.Sprite musicOn;
    public UnityEngine.Sprite musicOff;
    public UnityEngine.Sprite soundOn;
    public UnityEngine.Sprite soundOff;
    public TMPro.TextMeshProUGUI musicTxt;
    public TMPro.TextMeshProUGUI soundTxt;
    
    // Methods
    private void Start()
    {
        this.Refresh();
    }
    private void Update()
    {
    
    }
    public void ToggleMusic()
    {
        if((UnityEngine.PlayerPrefs.GetInt(key:  -1610605275)) != 0)
        {
                this.musicImage.sprite = this.musicOn;
            UnityEngine.PlayerPrefs.SetInt(key:  -1610605275, value:  0);
            mem[536882947].TurnMusicOn();
            return;
        }
        
        this.musicImage.sprite = this.musicOff;
        UnityEngine.PlayerPrefs.SetInt(key:  -1610605275, value:  1);
        mem[536882947].TurnMusicOff();
    }
    public void ToggleSound()
    {
        if((UnityEngine.PlayerPrefs.GetInt(key:  -1610603717)) != 0)
        {
                this.soundImage.sprite = this.soundOn;
            UnityEngine.PlayerPrefs.SetInt(key:  -1610603717, value:  0);
            mem[536882947].TurnSoundOn();
            return;
        }
        
        this.soundImage.sprite = this.soundOff;
        UnityEngine.PlayerPrefs.SetInt(key:  -1610603717, value:  1);
        mem[536882947].TurnSoundOff();
    }
    private void Refresh()
    {
        if((UnityEngine.PlayerPrefs.GetInt(key:  -1610605275)) != 0)
        {
                this.musicImage.sprite = this.musicOff;
            mem[536882947].TurnMusicOff();
        }
        else
        {
                this.musicImage.sprite = this.musicOn;
            mem[536882947].TurnMusicOn();
        }
        
        if((UnityEngine.PlayerPrefs.GetInt(key:  -1610603717)) != 0)
        {
                this.soundImage.sprite = this.soundOff;
            mem[536882947].TurnSoundOff();
            return;
        }
        
        this.soundImage.sprite = this.soundOn;
        mem[536882947].TurnSoundOn();
    }
    public Setting()
    {
    
    }

}
